gpx: Force to version 1.1 when option 'humminbirdextensions' was enabled.
authoroliskoli <oliskoli>
Mon, 25 Aug 2008 20:54:14 +0000 (20:54 +0000)
committeroliskoli <oliskoli>
Mon, 25 Aug 2008 20:54:14 +0000 (20:54 +0000)
gpx.c

diff --git a/gpx.c b/gpx.c
index 7fa727913195118d68d47f9033cc27e55c56c8a2..b2fb3aa3d9a93316b33895a3d17829c58fe87859 100644 (file)
--- a/gpx.c
+++ b/gpx.c
@@ -1808,6 +1808,8 @@ gpx_write(void)
        time_t now = 0;
        int short_length;
 
+       if (opt_humminbirdext) gpx_wversion = "1.1";
+
        gpx_wversion_num = strtod(gpx_wversion, NULL) * 10;
 
        if (gpx_wversion_num <= 0) {